package com.atguigu.lease.common.minio;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 配置类怎么加入到容器：
 * 1. @Component (MinioProperties) [饿汉]
 * 2. @EnableConfigurationProperties(XxxxProperties.class)（使用我们的配置类上！MinioConfiguration)[懒汉推荐]
 */
@Data
@ConfigurationProperties(prefix = "minio")
public class MinioProperties {
    private String endpoint;

    private String accessKey;

    private String secretKey;

    private String bucketName;
}
